/**
 * Created by wry on 2014/12/29.
 */
module.exports = function (app) {
    var admin = require('../../controllers/backoffice/backOffice-question-controller');

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/backPostQuestion', admin.backPostQuestion);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/MultipleAccountPostQuestion', admin.MultipleAccountPostQuestion);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/saveQuestionStore', admin.saveQuestionStore);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/getQuestionStore/:page/:size', admin.getQuestionStore);

    app.delete('/rest/' + RESTFullServiceVersion + '/backoffice/question/deleteQuestionStore/:objId', admin.deleteQuestionStore);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/updateQuestionstore/:objId', admin.updateQuestionStore);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/uploadImage', admin.uploadImage);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/createQuestionOrActivity', admin.createQuestionOrActivity);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/getCardByFilter', admin.getCardByFilter);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/saveCard', admin.saveCard);

    app.delete('/rest/' + RESTFullServiceVersion + '/backoffice/question/deleteCard/:objId', admin.deleteCard);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/question/setCardOrder', admin.setCardOrder);
};